home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Practical Algorithms for Image Analysis
/
Practical Algorithms for Image Analysis.iso
/
CH_4.4
/
XFM
/
FTEST.DAT
< prev
next >
Wrap
Text File
|
1999-09-11
|
1KB
|
56 lines
...let's initialize a test filter array
1 1 1 1
1 1 1 0
1 1 1 0
1 0 0 0
...start AP
-->reduce clock speed!
...matrix multiplication to obtain moments
...transfer data to array processor
...ckeck DONE flag (do not wait if not set): 0
...moment output:
1.0000 2.0000 6.0000 26.0000
2.0000 4.0000 12.0000 46.0000
6.0000 12.0000 36.0000 126.0000
26.0000 46.0000 126.0000 412.0000
centroid:
...x_bar = 2.000000 y_bar = 2.000000
...m00 = 1.000000
...moments:
m[0][0]/m00 = 1.000000
m[0][1]/m00 = 2.000000
m[0][2]/m00 = 6.000000
m[0][3]/m00 = 26.000000
m[1][0]/m00 = 2.000000
m[1][1]/m00 = 4.000000
m[1][2]/m00 = 12.000000
m[1][3]/m00 = 46.000000
m[2][0]/m00 = 6.000000
m[2][1]/m00 = 12.000000
m[2][2]/m00 = 36.000000
m[2][3]/m00 = 126.000000
m[3][0]/m00 = 26.000000
m[3][1]/m00 = 46.000000
m[3][2]/m00 = 126.000000
m[3][3]/m00 = 412.000000
1.000000
...central moments:
...mu00 = 1.000000, mu11 = 0.000000
...mu02 = 2.000000, mu20 = 2.000000
...rad_gyr = 2.000000
...dent = 0.000000